package com.lqs.blog.service;

import com.lqs.blog.pojo.SysUser;
import com.lqs.blog.vo.Result;
import com.lqs.blog.vo.UserVo;

public interface SysUserService {
     SysUser getUserById(Long authorId);

    SysUser getUserByAccountAndPassword(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result getUserByToken(String token);

    /**
     * 查询账号
     * @param account
     * @return
     */
    SysUser getUserByAccount(String account);

    /**
     * 注册用户
     * @param sysUser
     */
    void save(SysUser sysUser);

    /**
     * 通过id返回UserVo对象
     * @param authorId
     * @return
     */
    UserVo getUserVoById(Long authorId);
}
